package com.dupf.product.dao.mapper;

import com.dupf.product.dao.model.ProductVariant;
import com.dupf.product.dao.model.ProductVariantExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ProductVariantMapper {
    long countByExample(ProductVariantExample example);

    int deleteByExample(ProductVariantExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductVariant record);

    int insertSelective(ProductVariant record);

    List<ProductVariant> selectByExample(ProductVariantExample example);

    ProductVariant selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductVariant record, @Param("example") ProductVariantExample example);

    int updateByExample(@Param("record") ProductVariant record, @Param("example") ProductVariantExample example);

    int updateByPrimaryKeySelective(ProductVariant record);

    int updateByPrimaryKey(ProductVariant record);

    List<Map<String, Object>> selectUserIdsByOrgIdGroupByUserId(Integer orgId);
}